<?php

namespace App\Http\Requests\Tickers;

use Illuminate\Foundation\Http\FormRequest;

class GetListsRequest extends FormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'quoteCcy'  => 'required|in:USD,USDT',
            'sort'      => 'required|in:heat,inc,ctime,main,all',
            'pageNo'    => 'sometimes|integer|min:1',
            'pageSize'  => 'sometimes|integer|min:1|max:100',
            'search'    => 'sometimes',
        ];
    }
}
